package com.atguigu.service;

import com.atguigu.base.BaseService;
import com.atguigu.entity.Permission;

import java.util.List;

public interface PermissionService extends BaseService<Permission> {

    /**
     * 根据当前登录的用户id查询权限集合
     * @param adminId
     * @return
     */
    List<Permission> findPermissionListByAdminId(Long adminId);


    /**
     * 根据用户id查询权限信息
     * @param adminId
     * @return
     */
    List<String> findPermissionCodeListByAdminId(Long adminId);

}
